package com.yxc.plan.wolf.domain.repository;

import com.yxc.plan.wolf.domain.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @Description :
 * @Author : abc@vanke.com
 * @Date : 2018/12/11 4:38 PM
 */
@Repository
public interface CommentRepository extends JpaRepository<Comment, Long>, JpaSpecificationExecutor<Comment> {
    Page<Comment> findByDeletedAndTweetId(Boolean deleted, Long tweetId, Pageable pageable);
}
